package com.tlvip;

/**
 * <p>description：</p>
 * <p>copyright： copyright(C)2016-2099</p>
 * <p>Life is short,we need passion</p>
 * <p>Summary： </p>
 * <p>instructions： </p>
 * Date 3/7/21</p>
 * Author mac
 *
 * @version 1.0
 */
public class TestClassLoad {
    public static void main(String[] args) {
        ClassLoader classLoader = Thread.currentThread().getContextClassLoader();
        while (true) {
            if (classLoader == null) {
                System.out.println(classLoader);
                break;

            } else {
                System.out.println(classLoader);
                classLoader = classLoader.getParent();
            }
        }

    }
}
